//
//  common.swift
//  sina
//
//  Created by 张鹏 on 16/5/21.
//  Copyright © 2016年 ZP. All rights reserved.
//

import UIKit


//在同一个命名空间下,所有文件默认共享, 类似于OC中的PCH文件

let screenWidth = UIScreen.mainScreen().bounds.width
let screenHeight = UIScreen.mainScreen().bounds.height



//用户登录授权配置信息

//App Key：3440263826
//App Secret：7651f78f48e0598d3ba96d62285e6b2b

let client_id = "3440263826"
let client_secret = "7651f78f48e0598d3ba96d62285e6b2b"
let redirect_uri = "http://www.baidu.com"


//没有网络提示
let noWIFI = "世界上最远的距离就是没网"

//control + i : 代码格式对齐

//定义通知的名称
let SwitchRootViewController = "SwitchRootViewController"

//随机色
func randomColor() -> UIColor {
    let red = CGFloat(random() % 256) / 255.0
    let blue = CGFloat(random() % 256) / 255.0
    let green = CGFloat(random() % 256) / 255.0
    
    return UIColor(red: red, green: green, blue: blue, alpha: 1)
}











